<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/ajaxfileupload.js"></script>
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<title>导出文章Excel管理</title>
<script> 
function check_submit()
{
  if($('#web_type').val()== "0")
  {
      alert('选择网站类型！');
      return false;
  }
  
  var falge = false;
  var  field_str = '';
  $('input[name="field_list[]"]').each(function () {
  if ($(this).attr('checked')) 
  {
	falge = true;
	if(field_str == "")
	{
	    field_str = $(this).val();
	}else
	{
	    field_str +=  " , "+$(this).val();
	}
   }
  });
  if(!falge)
  {
      alert('你没有选择任何选项！');   
      return false;
  }else
  {
     $("#field_list").val(field_str);
  }
   if($('#file_name').val().replace(/(^\s*)|(\s*$)/g, "")=="")
  {
      alert('导出文件名不能为空！');
      $("#file_name").focus();
      return false;
  }
  
  var Ary = $("#file_name").val().split('.');
  var  filetype = Ary[Ary.length-1];
  if (filetype != 'xls') 
  {
     alert ('导出文件名的格式必须为xls！');
     return false;
  }
  return true;
}
</script>
</head>
<body>
<h1>
<span class="action-span1">
<a href="">导出文章Excel管理</a>
</span> 
&nbsp;
<div style="clear:both"></div>
</h1>
<div id="tabbody-div"  style=" width:1100px;">
      <form  name="theForm" method="post" action="" onsubmit="return check_submit();">
	   <table align="center" width="90%" id="general-table">
          <tbody>
		  <tr>
		  <td class="label">
		  请选择要导出的字段:
		  </td>
		  <td><{$field_list_checkbox}></td>
		  </tr>
		   <tr>
		  <td class="label">
		  网站类型:
		  </td>
		  <td>
		   <select name="web_type" id="web_type" >
			<option value="0" selected="selected"  >网站类型</option>
			<option value="1" >wondershare</option>
			<option value="2" >aimersoft</option>
			<option value="3" >anypdftools</option>
			<option value="4" >applemacvideo</option>
			<option value="5" >wondershare.jp</option>
			<option value="6" >www.wondershare.de</option>
			<option value="7" >spotmau</option>
			<option value="8" >iskysoft</option>
			<option value="11" >wondershare.fr</option>
			<option value="12" >wondershare.es</option>
			<option value="13" >wondershare.com.mx</option>
			<option value="14" >wondershare.com.br</option>
			</select> 
		  </td>
		  </tr>
		   <tr>
		  <td class="label">
		   导出文件名:
		  </td>
		  <td><input type="text" size="60" style="float:left;color:;" value="" name="file_name" id="file_name"><span style="color:#FF0000">格式必须为xls</span></td>
		  </tr>
		  </tbody></table>
        <div  style="margin-left:380px; margin-top:20px;">
		<input type="hidden" name="field_list" id="field_list" value="" />
          <input type="submit"   class="button" value=" 导出  " name="sub_from" style="cursor:pointer;">
		  
          <input type="reset" class="button" value=" 重置 ">
        </div>
      </form>
    </div>
</body>
</html>